---
layout: example.html
title: Vector
shortdesc: Example of a vector layer rendered in Google Maps.
docs: >
  <p>
    Demonstrates the synchronization between a vector layer added
    to the OpenLayers map with Google Maps.
  </p>
  <p>
    OL3-Google-Maps detects any vector layer added to the OpenLayers
    map and synchronize the vector features added to it to the
    Google Maps map. The geometry and style are also synchronized.
  </p>
---
<div id="map" class="map"></div>
<button id="toggle" title="Toggle between OL and GMaps">Toggle between OL and GMaps</button>
